
module.exports = function (app) {

  var http = require('http').Server(app)
  var io = require('socket.io')(http)

  io.on('collection', function (socket) {
    socket.emit('collect-success', {newUser: '聊天室连接成功!'})
    socket.on('collect-success', function (user) {

    })
  })
}